package action;

import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import biz.CartBiz;

import dao.ItemDAO;

import util.ActionForward;
import vo.Item;

public class ItemCartRemoveAction implements Action{

	@Override
	public ActionForward execute(HttpServletRequest request,
			HttpServletResponse response) throws Exception {
		String[ ] names=request.getParameterValues("delete");
		CartBiz cartBiz = new CartBiz();
		cartBiz.removeCartItem(request, names);
		
		ActionForward forward = new ActionForward();
		forward.setRedirect(true);
		forward.setUrl("itemCartList.do");
		
		return forward;
	}

}










